import 'package:freezed_annotation/freezed_annotation.dart';

part 'banner_response.freezed.dart';
part 'banner_response.g.dart';

@freezed
abstract class BannerResponse with _$BannerResponse {
  const factory BannerResponse({
    @JsonKey(name: 'desc') String? desc,
    @JsonKey(name: 'id') int? id,
    @JsonKey(name: 'imagePath') String? imagePath,
    @JsonKey(name: 'isVisible') int? isVisible,
    @JsonKey(name: 'order') int? order,
    @JsonKey(name: 'title') String? title,
    @JsonKey(name: 'type') int? type,
    @JsonKey(name: 'url') String? url,
  }) = _BannerResponse;

  factory BannerResponse.fromJson(Map<String, Object?> json) =>
      _$BannerResponseFromJson(json);
}
